xen/arm32: head: Move earlyprintk messages to .rodata.str
authorJulien Grall <jgrall@amazon.com>
Fri, 12 Aug 2022 19:24:44 +0000 (20:24 +0100)
committerJulien Grall <julien@xen.org>
Wed, 31 Aug 2022 19:16:22 +0000 (20:16 +0100)
commit3babad2af858630b9196b89681a54d4360d39025
tree0b95187cddaecef42c498e35f5007fcc1554f97a
parenta571c1aab5a11a238eb190d20390435d49cdd50b
xen/arm32: head: Move earlyprintk messages to .rodata.str

At the moment, the strings are in text right after each use because
the instruction 'adr' has specific requirement on the location
and the compiler will forbid cross section label.

The macro 'adr_l' was recently reworked so the caller doesn't need
to know whether the MMU is on. This makes it easier to use where
instructions can be run in both context.

This also means that the strings don't need to be part of .text
anymore. So move them to .rodata.str.

Signed-off-by: Julien Grall <jgrall@amazon.com>
Reviewed-by: Jiamei Xie <jiamei.xie@arm.com>
Reviewed-by: Bertrand Marquis <bertrand.marquis@arm.com>
Tested-by: Bertrand Marquis <bertrand.marquis@arm.com>
Reviewed-by: Wei Chen <Wei.Chen@arm.com>
xen/arch/arm/arm32/head.S